package com.example.demo11.controller.config


import java.util

import org.aspectj.lang.annotation.Before
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component

import scala.collection.JavaConverters

@Component
@ConfigurationProperties(prefix = "my")
class MyConfig {
    private val servers:util.List[String] = new util.ArrayList[String]
    //aop 注入属性

    def getServers: util.List[String] = {
      this.servers
    }
}
